<!--
 * @Descripttion:
 * @version: 1.0
 * @Author: wuhao
 * @Date: 2021-10-08 15:02:54
 * @LastEditors: wuhao
 * @LastEditTime: 2021-10-09 10:58:34
-->
<template>
  <div class="ehb all">
    <ehb-header :service-name="serviceName"></ehb-header>
    <ehb-content-row v-bind:row-data-list="items"></ehb-content-row>
    <ehb-footer></ehb-footer>
  </div>
</template>

<script>
  export default {
    name: "index",
    data(){
      return {
        serviceName:'',
        items:[]
      }
    },
    mounted() {
      let that = this;
      ehbAppJssdk.operateWindow.getPrePageParams({
        success: function (res) {
          let resJSON = {};
          if (res) {
            resJSON = JSON.parse(res);
          }
          that.serviceName = resJSON.name
          that.items = resJSON.children
          for(let i in that.items){
            that.items[i].params = {...that.items[i]}
          }
        }
      });
    }
  }
</script>

<style scoped>

</style>
